package com.mdh.runerrands.serviceImpl;

import com.mdh.runerrands.dao.USerInfoDao;
import com.mdh.runerrands.pojo.UserInfo;
import com.mdh.runerrands.service.IUserInfoService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
@Service
public class UserInfoServiceImpl implements IUserInfoService {

    @Resource
    private USerInfoDao uSerInfoDao;
    @Override
    public UserInfo selectByUsernameAndToken(Integer userId, String token) {
        return uSerInfoDao.selectByUsernameAndToken(userId,token);
    }

    @Override
    public boolean insert(UserInfo userInfo) {
        return uSerInfoDao.insert(userInfo);
    }

    @Override
    public boolean delete(int userId) {
        return uSerInfoDao.delete(userId);
    }
}
